<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>单位用户</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
	function setSf(svalue) {
		if ($("#sf").val() == "")
			$("#sf option").each(function() {
				if (svalue.indexOf($(this).val()) >= 0) {
					$("#sf").val($(this).val());
				}
			});
	}
</script>
</head>
<body style="overflow-y: hidden" scroll="no">
	<t:formvalid formid="formobj" dialog="true" usePlugin="password"
		layout="table" action="enterController.do?save">
		<input id="id" name="id" type="hidden" value="${enterPage.id }">
		<div style="width: 600px;height: 500px;overflow-y: auto;">
			<table style="" cellpadding="0" cellspacing="1"
				class="formtable">
				<tr>
					<td align="right"><label class="Validform_label">
							单位帐号: </label>
					</td>
					<td class="value"><input class="inputxt" id="account"
						name="account" datatype="s" value="${enterPage.account}">
						<span class="Validform_checktip">系统登录用户名</span>
					</td>
				</tr>
				<tr>
					<td align="right"><label class="Validform_label">
							单位名称: </label>
					</td>
					<td class="value"><input class="inputxt" id="name" name="name"
						datatype="*" onblur="setSf(this.value);" value="${enterPage.name}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right"><label class="Validform_label">
							执行频率: </label>
					</td>
					<td class="value"><t:dictSelect typeGroupCode="timecron"
							field="zxpl" defaultVal="${enterPage.zxpl}" hasLabel="false"></t:dictSelect>
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right"><label class="Validform_label">
							单位负责人: </label>
					</td>
					<td class="value"><input class="inputxt" id="ceo" name="ceo"
						ignore="ignore" value="${enterPage.ceo}"> <span
						class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right"><label class="Validform_label">
							单位地址: </label>
					</td>
					<td class="value"><input class="inputxt" id="address"
						name="address" ignore="ignore" value="${enterPage.address}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right"><label class="Validform_label"> 手机:
					</label></td>
					<td class="value"><input class="inputxt" id="mobile"
						name="mobile" ignore="ignore" value="${enterPage.mobile}">
						<span class="Validform_checktip">短信通知手机号码</span>
					</td>
				</tr>
				<tr>
					<td align="right"><label class="Validform_label"> 邮箱:
					</label></td>
					<td class="value"><input class="inputxt" id="email"
						name="email" ignore="ignore" value="${enterPage.email}"> <span
						class="Validform_checktip">邮件通知</span>
					</td>
				</tr>
				<tr>
					<td align="right"><label class="Validform_label">
							信息通知: </label>
					</td>
					<td class="value">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
						type="checkbox" id="usephone" name="usephone" value="1"
						<c:if test="${enterPage.usephone=='1'}">checked</c:if> />邮件
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
						type="checkbox" id="useemail" name="useemail" value="1"
						<c:if test="${enterPage.useemail=='1'}">checked</c:if> />短信</td>
				</tr>
				<c:if test="${enterPage.id!=null}">
					<tr>
						<td align="right"><label class="Validform_label">
								顶部图片: </label>
						</td>
						<td class="value"><c:if test="${enterPage.topphoto!=null}">
								<img src="${enterPage.topphoto}" width="500" height="60">
							</c:if> &nbsp;</td>
					</tr>
					<tr>
						<td align="right"><label class="Validform_label">
								底部图片: </label>
						</td>
						<td class="value"><c:if test="${enterPage.topphoto!=null}">
								<img src="${enterPage.bottomphoto}" width="500" height="60">
							</c:if> &nbsp;</td>
					</tr>
					<tr>
						<td align="right"><label class="Validform_label">
								创建时间: </label>
						</td>
						<td class="value"><input class="Wdate" style="width: 150px"
							id="createtime" name="createtime" ignore="ignore"
							readonly="readonly"
							value="<fmt:formatDate value='${enterPage.createtime}' type="date" pattern="yyyy-MM-dd hh:mm:ss"/>">
							<span class="Validform_checktip"></span>
						</td>
					</tr>
				</c:if>
			</table>
		</div>
	</t:formvalid>
</body>